package rabbitmq.constant;

public class Constants {
    /**
     * 主机地址
     */
    public static final String HOST = "123.56.112.181";
    /**
     * 端口号
     */
    public static final Integer PORT = 5672;
    /**
     * 用户名
     */
    public static final String USERNAME = "study";
    /**
     * 密码
     */
    public static final String PASSWORD = "study";
    /**
     * 虚拟主机
     */
    public static final String VIRTUAL_HOST = "bite";

    //通配符模式
    public static final String TOPIC_EXCHANGE = "topic.exchange";
    public static final String TOPIC_QUEUE1 = "topic.queue1";
    public static final String TOPIC_QUEUE2 = "topic.queue2";

    //路由模式
    public static final String DIRECT_EXCHANGE = "direct.exchange";
    public static final String DIRECT_QUEUE1 = "direct.queue1";
    public static final String DIRECT_QUEUE2 = "direct.queue2";


    //发布订阅模式
    public static final String FANOUT_EXCHANGE = "fanout.exchange";
    public static final String FANOUT_QUEUE1 = "fanout.queue1";
    public static final String FANOUT_QUEUE2 = "fanout.queue2";
    //声明一个工作队列
    public static final String WORK_QUEUE = "work.queue";

    //rpc  模式
    //声明请求队列
    public static final String RPC_REQUEST_QUEUE = "rpc.request.queue";
    //声明响应队列
    public static final String RPC_RESPONSE_QUEUE = "rpc.response.queue";
}
